package com.dhc.appbusinessfrm.task;

import java.util.Comparator;

/**
 * Created by xy on 2015/6/18.
 */
public class TaskPriorityComparator implements Comparator<PriorityTask> {
    @Override
    public int compare(PriorityTask lhs, PriorityTask rhs) {
        if (lhs.getPriority() > rhs.getPriority())
            return -1;
        if (lhs.getPriority() < rhs.getPriority())
            return 1;
        return 0;
    }
}
